import request from '@/utils/request'

// 查询标签列表
export function label_list(query) {
  return request({
    url: '/town/label/list',
    method: 'get',
    params: query
  })
}

// 新增标签
export function label_add(data) {
  return request({
    url: '/town/label',
    method: 'post',
    data: data
  })
}

// 查询标签详情
export function label_info(data) {
  return request({
    url: '/town/label/info',
    method: 'get',
    params: data
  })
}

// 修改标签
export function label_update(data) {
  return request({
    url: '/town/label',
    method: 'put',
    data: data
  })
}

// 删除标签
export function label_delete(id) {
  return request({
    url: '/town/label/' + id,
    method: 'delete'
  })
}

// 查询分类列表
export function type_list(data) {
  return request({
    url: '/town/label/listClassify',
    method: 'get',
    params:data
  })
}

